package com.xindacloud.sms.adapter.utils;

import lombok.extern.slf4j.Slf4j;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

@Slf4j
public class Base64DecodeHelp {

    private static final Base64.Decoder decoder = Base64.getDecoder();

    public static String decode(String decoderStr) {

        return new String(decoder.decode(decoderStr), StandardCharsets.UTF_8);
    }
}
